/* 
 * File:   workspace.hpp
 * Author: jolo
 *
 * Created on 6. Oktober 2011, 20:01
 */

#ifndef GUI_WORKSPACE_HPP
#define	GUI_WORKSPACE_HPP

#include <widgets/workspace.hpp>

namespace model {
    class repository;
    typedef shared_ptr<repository> repository_ptr;
}

namespace widgets {
    class entity_html_viewer;
}

namespace gui
{
    class repository_tree_model;
    class repository_tree_view;
    
    class workspace : public widgets::workspace
    {
        Q_OBJECT
    public:
        workspace(QWidget* p = 0);
        virtual ~workspace();
    
    public slots:
        virtual void on_repository_opened(model::repository_ptr r);
        virtual void on_repository_closed();
        
    private:
        QSplitter* spl_;
        repository_tree_model* rtm_;
        repository_tree_view* rtv_;
        widgets::entity_html_viewer* ev_;

    };
}

#endif	/* WORKSPACE_HPP */

